package com.at.spring.Service.Impl;

import com.at.spring.respository.VipMapper;
import com.at.spring.Bean.Vip;
import com.at.spring.Service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipServiceImpl implements VipService{

    @Autowired
    private VipMapper vipMapper;

    @Override
    public boolean save(Vip vip) {
        return vipMapper.insert(vip)==1;
    }

    @Override
    public List<Vip> findAll() {
        return vipMapper.selectAll();
    }
}